package com.service.pay.diamond.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.tool.base.base.BaseEntity;
import lombok.Data;

import javax.persistence.Entity;
import java.util.Date;

@Entity(name = "dm_order")
@Data
public class OrderEntity extends BaseEntity {
    private String orderNo;
    private String body;
    private String attach;
    private int fee;
    private String ip;
    private String redirectUrl;
    private String notifyUrl;
    @JsonProperty
    private String result;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date payDateTime;
    private int status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date timeStart;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date timeEnd;
    private String transactionId;
    /*订单类型：消费-consume，充值-recharge*/
    private String type;
}
